package com.example.function.integration.sftp;

import com.alibaba.fastjson.annotation.JSONField;

import java.io.Serializable;

/**
 * @description:
 * @className:CrlSftpVo
 * @author:ext.fengcheng
 * @date:2023/9/27 15:42
 */
public class CrlSftpVo implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * ip地址
     */
    private String host;
    /**
     * 端口
     */
    private int port;
    /**
     * 用户名
     */
    private String username;
    /**
     * 密码
     */
    @JSONField(serialize = false)
    private String password;
    /**
     * 秘钥文件
     */
    private String privateKeyFile;

    /**
     * 获取 ip地址
     *
     * @return host ip地址
     */
    public String getHost() {
        return this.host;
    }

    /**
     * 设置 ip地址
     *
     * @param host ip地址
     */
    public void setHost(String host) {
        this.host = host;
    }

    /**
     * 获取 端口
     *
     * @return port 端口
     */
    public int getPort() {
        return this.port;
    }

    /**
     * 设置 端口
     *
     * @param port 端口
     */
    public void setPort(int port) {
        this.port = port;
    }

    /**
     * 获取 用户名
     *
     * @return username 用户名
     */
    public String getUsername() {
        return this.username;
    }

    /**
     * 设置 用户名
     *
     * @param username 用户名
     */
    public void setUsername(String username) {
        this.username = username;
    }

    /**
     * 获取 密码
     *
     * @return password 密码
     */
    public String getPassword() {
        return this.password;
    }

    /**
     * 设置 密码
     *
     * @param password 密码
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * 获取 秘钥文件
     *
     * @return privateKeyFile 秘钥文件
     */
    public String getPrivateKeyFile() {
        return this.privateKeyFile;
    }

    /**
     * 设置 秘钥文件
     *
     * @param privateKeyFile 秘钥文件
     */
    public void setPrivateKeyFile(String privateKeyFile) {
        this.privateKeyFile = privateKeyFile;
    }

    @Override
    public String toString() {
        return "CrlSftpVo{" +
                "host='" + host + '\'' +
                ", port=" + port +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", privateKeyFile='" + privateKeyFile + '\'' +
                '}';
    }
}
